package com.hnucm.cooklife.bean.db;

import com.chad.library.adapter.base.entity.JSectionEntity;

import java.util.ArrayList;
import java.util.List;

public class OrderSec extends JSectionEntity {

    public int oId;
    public String oname;
    public String ocap;
    public double oprice;
    public int osold;
    public String ocato;
    public int ogroupId;

    public String ofrom;
    public String oto;

    public String orderpicList;

    private boolean isHeader;
    private Object mObject;

    public OrderSec(boolean isHeader, Object object) {
        this.isHeader = isHeader;
        this.mObject = object;
    }

    public Object getObject() {
        return mObject;
    }

    @Override
    public boolean isHeader() {
        return isHeader;
    }

    @Override
    public int getItemType() {
        if(isHeader()){
            return OrderSec.HEADER_TYPE;
        } else {
            return OrderSec.NORMAL_TYPE;
        }
    }
}
